package com.example.badyloans.dao;

import com.example.badyloans.pojo.TBid;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TBidMapper {
    int deleteByPrimaryKey(String id);

    int insertSelective(TBid record);

    TBid selectByPrimaryKey(String id);

    TBid selectByPrimary1(String borrowid);

    List<TBid> selectByPrimary2(String borrowid);

    List<TBid> selectByPrimary3(String borrowstate);

    List<TBid> selectByPrimaryKey1(@Param("borrowid") String borrowid, @Param("currentPageNo")Integer currentPageNo,
                                   @Param("pageSize")Integer pageSize);

    int count();

    int updateByPrimaryKeySelective(TBid record);

    TBid selectone(@Param("borrowId") String borrowId,@Param("bidUserId") String bidUserId);
}